package com.clkj.xiuzheng.pojo.shangcheng;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

import com.clkj.xiuzheng.pojo.Company;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
* 菜单表
* @TableName t_xz_menu
*/
@ApiModel( value ="t_xz_menu" )
@Table( name ="t_xz_menu" )
public class Menu implements Serializable {

    /**
     * 菜单表
     */
    @Id
    @Column(name = "menu_id",updatable = false)
    @ApiModelProperty( value="菜单表")
    private Integer menuId;

    /**
     * 菜单名称
     */
    @Column(name = "menu_name" )
    @ApiModelProperty( value="菜单名称")
    private String menuName;

    /**
     * 父类id 0为一级菜单
     */
    @Column(name = "parent_id" )
    @ApiModelProperty( value="父类id 0为一级菜单")
    private Integer parentId;

    @Column(name = "menu_url" )
    @ApiModelProperty( value="路由地址")
    private String menuUrl;

    /**
     * 0删
     */
    @Column(name = "status" )
    @ApiModelProperty( value="0删")
    private Integer status;

    @Transient
    private List<Menu> children;





    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }


    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }
}
